<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\AdminRecord
 *
 * @property int $record_id
 * @property string $types 关联类型
 * @property int $types_id 类型ID
 * @property string $content 跟进内容
 * @property string $category 跟进类型
 * @property int $next_time 下次联系时间
 * @property string $business_ids 商机ID
 * @property string $contacts_ids 联系人ID
 * @property int $create_time 创建时间
 * @property int $update_time 更新时间
 * @property int $create_user_id 创建人ID
 * @property string|null $status
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereBusinessIds($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereCategory($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereContactsIds($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereCreateTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereCreateUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereNextTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereRecordId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereTypes($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereTypesId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereUpdateTime($value)
 * @mixin \Eloquent
 * @property int|null $project_id 项目id
 * @property int|null $parent_id record_id
 * @property-read \App\User|null $creater
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereParentId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\AdminRecord whereProjectId($value)
 */
class AdminRecord extends Model
{
    public $timestamps=null;
    protected $primaryKey='record_id';
    protected $table='5kcrm_admin_record';

    public function creater(){
        return $this->hasOne(User::class,'id','create_user_id');
    }
}
